package com.huawei.hms.support.api.pay;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.pay.OrderResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiPayApiImpl$a extends PendingResultImpl<OrderResult, OrderResp> {
    public final /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        OrderResp orderResp = (OrderResp) iMessageEntity;
        if (orderResp == null) {
            HMSLog.e("HuaweiPayApiImpl", "order resp is null or orderResp.returnCode is null");
            return null;
        }
        HMSLog.i("HuaweiPayApiImpl", "getOrderDetail resp :" + orderResp.getReturnCode());
        Result orderResult = new OrderResult(orderResp);
        orderResult.setStatus(new Status(orderResp.getReturnCode(), orderResp.getReturnDesc()));
        return orderResult;
    }

    public HuaweiPayApiImpl$a(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }
}
